package cn.ch.basic.query;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class BaseQuery {
    private Integer currentPage = 1;//当前页数currentPage
    private Integer pageSize = 10;//数据条数
    //高级查询，关键字
    private String keyword;

    //创建一个方法展示当前页
    public Integer getStart(){
        return (this.currentPage-1)*(this.pageSize);
    }
}
